


git pull

mvn clean  package

ps -ef|grep java|grep target

tpid=`ps -ef|grep java|grep jar|grep 8080|grep -v grep|grep -v kill |awk '{print $2}'`
echo $tpid
[ -n "$tpid" ] && kill -15 ${tpid} && sleep 10
nohup java -jar  target/test-java-1.0-SNAPSHOT.jar --server.port=8080  --spring.profiles.active=prod  >nohup.8080.log  &

sleep 20

tpid=`ps -ef|grep java|grep jar|grep 8081|grep -v grep|grep -v kill |awk '{print $2}'`
echo $tpid
[ -n "$tpid" ] && kill -15 ${tpid} && sleep 10
nohup java -jar  target/test-java-1.0-SNAPSHOT.jar --server.port=8081  --spring.profiles.active=prod>nohup.8081.log  &

sleep 20

tpid=`ps -ef|grep java|grep jar|grep 8082|grep -v grep|grep -v kill |awk '{print $2}'`
echo $tpid
[ -n "$tpid" ] && kill -15 ${tpid} && sleep 10
nohup java -jar  target/test-java-1.0-SNAPSHOT.jar --server.port=8082  --spring.profiles.active=prod>nohup.8082.log  &

ps -ef|grep java






